from django.db import models
from django.conf import settings
from StartGroup.models import Group
import datetime

class Announcement(models.Model):
    group = models.ForeignKey(Group, to_field='group_web_address', unique=False)
    title = models.CharField(max_length=50)
    description = models.CharField(max_length=300)
    created_date = models.DateTimeField(auto_now_add = True)
    post_by = models.CharField(max_length=40)